//package com.sansui.blog.interceptor;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
///**
// * @name: WebConfig
// * @author: Sansui
// * @Software: IDEA
// * @Blog: https://www.cnblogs.com/sansui6/
// * @date: 2022-03-20 23:10
// **/
//
///*过滤器的配置类*/
//@Configuration
//public class WebConfig  implements WebMvcConfigurer {
//
////    @Override
////    public void addInterceptors(InterceptorRegistry registry) {
////        registry.addInterceptor(new LoginInterceptor())
////                .addPathPatterns("/admin/**")//需要过滤的类
////                .excludePathPatterns("/admin","/admin/login");//过滤器的白名单
////    }
//
////    @Override
////    public void addResourceHandlers(ResourceHandlerRegistry registry) {
////        //将templates目录下的CSS、JS文件映射为静态资源，防止Spring把这些资源识别成thymeleaf模版
////        registry.addResourceHandler("/templates/**").addResourceLocations("classpath:/templates/");
//////        registry.addResourceHandler("/templates/theme/**").addResourceLocations("classpath:/templates/");
////        //其他静态资源
//////        registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
////    }
//
//}
